<?php

require_once 'BaseDb.php';

class PmsDb extends BaseDb {

    public function __construct($dbName="rongyun") {
        $dsn = "mysql:host=testikeepfit.mysql.rds.aliyuncs.com:3306;dbname=$dbName;charset=utf8";
        try {
            $this->pdo = new PDO($dsn, 'for_ol', 'Abcd1234');
            $this->pdo->query('set names utf8');
            $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        }
        catch (PDOException $e) {
            echo $e->getMessage();
            return false;
        }
    }

}
